
#include <iostream>
#include <string.h>
#include <stdlib.h>

using namespace std;

struct Student
{
    char name[10];
    int num;
    char sex;
};

int main()
{
    Student *p;
    p=new Student;
    strcpy(p->name,"wan xing");
    p->num=10123;
    p->sex='M';
    cout<<p->num<<p->name<<p->sex<<endl;
    system("pause"); 
    return 0;
}